

class ResponseBean {
  String? id;
  int? statusCode;
  Map<String, dynamic>? headers;
  String? body;
  DateTime? createTime;
  String? statusReason;
  ResponseBean({this.id, this.statusCode, this.headers, this.body, this.createTime, this.statusReason});
  //tojson
  Map<String, dynamic> toJson() {
    return {
      'id': id,
      'statusCode': statusCode,
      'headers': headers,
      'body': body,
      'createTime': createTime?.millisecondsSinceEpoch,
    };
  } 
  //fromjson
  factory ResponseBean.fromJson(Map<String, dynamic> json) {
      return ResponseBean(id: json['id'], statusCode: json['statusCode'], headers: json['headers'], body: json['body'], createTime: json['createTime'], statusReason: json['statusReason']);
  }
}


